body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.header {
    background-color: #375eab;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.header h1 a {
    color: white;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.home-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #222;
}

h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.example-list {
    list-style-type: none;
    padding: 0;
}

.example-item {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: box-shadow 0.2s;
}

.example-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.example-item h3 {
    margin: 0;
    font-size: 1.2rem;
}

.example-item h3 a {
    color: #375eab;
    text-decoration: none;
}

.example-item h3 a:hover {
    text-decoration: underline;
}

/* 详情页样式 */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.explanation {
    flex: 1;
    min-width: 300px;
}

.code-section {
    flex: 1;
    min-width: 300px;
}

.code-block {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.code-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.output-block {
    background-color: #f0f8ff;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.output-block pre {
    margin: 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
}

.file-list {
    list-style-type: none;
    padding: 0;
    margin-top: 2rem;
}

.file-list h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.file-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.file-icon {
    margin-right: 0.5rem;
}

.footer {
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #666;
}

.footer p {
    margin: 0;
}

.footer a {
    color: #375eab;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .container, .home-container {
        padding: 1rem;
    }
    
    .header .container {
        padding: 0 1rem;
    }
}

/* 代码高亮 */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 链接样式 */
a {
    color: #375eab;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 首页介绍区域 */
.intro {
    background-color: #f8f9fa;
    border-left: 4px solid #375eab;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 4px 4px 0;
}

.intro p {
    margin: 0.8rem 0;
    line-height: 1.7;
}

/* 首页示例列表 */
.home-container .example-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.home-container .example-item {
    margin-bottom: 0.5rem;
    padding: 0.8rem 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.home-container .example-item:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.home-container .example-item h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.home-container .example-item h4 a {
    color: #375eab;
    text-decoration: none;
    display: block;
    padding: 0.2rem 0;
}

.home-container .example-item h4 a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .home-container {
        padding: 1rem;
    }
    
    .intro {
        padding: 0.8rem 1.2rem;
    }
    
    .home-container .example-item {
        padding: 0.6rem 0.8rem;
    }
}